package com.lgCore.rpc;/**
 * Created by by on 2021/4/12 10:13
 */

import com.lgCore.SxFilter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * rpc调用过滤器
 *@program: sxreader_rpc
 *@author: ligang
 *@create: 2021-04-12 10:13
 */
public class RpcFilter implements SxFilter {
    private static final Logger LOGGER = LoggerFactory.getLogger(RpcFilter.class);
    /**
     * 拦截服务端开始前处理
     * @param method  方法名称
     * @param paramTypes  参数类型
     * @param paramDatas  参数值
     * @return
     */
    @Override
    public boolean doBeforeRequest(String method,Class<?>[] paramTypes,Object[] paramDatas) {
//        LOGGER.info("执行服务端开始前处理{}",method);
        return false;
    }

    /**
     * 拦截器服务端后处理
     * @param result 结果
     * @return
     */
    @Override
    public boolean doAfterRequest(Object result) {
//        LOGGER.info("拦截器服务端后处理{}",result);

        return false;
    }
}
